package db

import (
	"context"
	"database/sql"
	"server/framework/orm/session/dialect"
	"server/framework/orm/session/model"
	"server/framework/orm/session/value"
)

type Core struct {
	Dialect      dialect.Dialect
	R            *model.Register
	Model        *model.Model
	ValueCreator value.Creator
}

type Session interface {
	GetCore() Core
	ExecContext(ctx context.Context, query string, args ...interface{}) (sql.Result, error)
	QueryContext(ctx context.Context, query string, args ...interface{}) (*sql.Rows, error)
}
